from functools import wraps
import traceback

def handle_exception(func):
    @wraps(func)
    def wrapper(*args, **kwargs):
        try:
            return func(*args, **kwargs)
        except Exception as e:
            print("出错了, e",e.args)
            # raise  # 可根据需要选择是否抛出
    return wrapper
